1550A Find The Array codeforces solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
main()
{
int t,n;
cin>>t;
while(t--)
{
cin>>n;
cout<<ceil(sqrt(n))<<endl;
}
}
1550A Find The Array codeforces solution in cpp
by ujjal roy
#include<bits/stdc++.h>
using namespace std;
main()
{
int t,n;
cin>>t;
while(t--)
{
cin>>n;
cout<<ceil(sqrt(n))<<endl;
}
}
0 Comments